<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06日历</title>
    <style>
        .box{
            width: 150px;
            height: 180px;
            margin: 100px auto;
            background-color: #336699;
            text-align: center;
        }
        .box p{
            line-height: 60px;
            color: #FFFFFF;
            font-size: 12px;
        }
        .box span{
            display: block;
            width: 75px;
            height: 75px;
            background-color:#9ACD32 ;
            margin: 0 auto;
            line-height: 75px;
            font-size: 50px;
            color: #000000;
        }
    </style>
    <script>
        window.onload = function(){
            var box = document.getElementById("box");
            var arr = ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
            var childrens = box.children;
            var date = new Date();
            childrens[0].innerHTML = date.getFullYear()+"年"+(date.getMonth()+1)+"月"+date.getDate()+"日"+
                arr[date.getDay()];
            childrens[1].innerHTML = date.getDate();
        }
    </script>
</head>
<body>
    <div class="box" id="box">
        <p>432431</p>
        <span>3</span>
    </div>
</body>
</html>